package com.wzk.travelspringboot.common.weather;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.OffsetDateTime;

/**
 * @Author: WangZiKang
 * @Date: 2025/1/18 13:46
 */

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class WeatherNowResponse {

    private String code;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;
    private String fxLink;
    private Now now;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Now {
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private String obsTime;
        private String temp;
        private String feelsLike;
        private String icon;
        private String text;
        private String wind360;
        private String windDir;
        private String windScale;
        private String windSpeed;
        private String humidity;
        private String precip;
        private String pressure;
        private String vis;
        private String cloud;
        private String dew;
    }
}
